function ProgressBar1(parent){
    var $bj=$("<div class='di'></div>")
    var $lubj=$("<div class='lubj'></div>")
    var $kuai=$("<div class='kuai'></div>")
    
    $lubj.append($kuai);
    $bj.append($lubj);
    parent.append($bj);
    this.setStaticWH=function(width,height){
        $bj.css({
            "height":height+"px",
            "width":width+"px",
        })
    }
    this.setMoveWidth=function(Wpercent){
        $lubj.css({
            "width":Wpercent+"%"
        })
    }
    this.setPosition=function(left,top){
        $bj.css({
            "left":left+"px",
            "top":top+"px",
        })
    }
}
 function LoadingScene(){
            var self = this;
            this.$me = $("<div class='scene'></div>");
            this.$pb = new ProgressBar1(this.$me);
            this.$pb.setPosition(200, 400);
            var step = 0;
            var myinte = setInterval(function(){
                step += 10;
                self.$pb.setMoveWidth(step);
                if(step>90){
                    clearInterval(myinte);
                    director.runScene(new MainScene());
                }
            }, 100);
           // var uid=localStorage.getItem("uid");
           // alert(uid);
        }